package com.example.hilt.data.viewmodel

import androidx.lifecycle.ViewModel
import com.example.hilt.data.repository.MyRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

/**
 ********************************************************
 *Author: chinadragon
 *Time: 2023/9/7 11:37
 *Name:
 *Overview:
 *Usage:

https://developer.android.com/jetpack/androidx/releases/hilt?hl=zh-cn
从 AndroidX Hil 工件（尤其是 @androidx.hilt.ViewModelInject 和 @androidx.hilt.Assisted）中移除了 @Deprecated 类型。
请注意，@ViewModelInject 已替换为 @HiltViewModel

 ********************************************************
 */
@HiltViewModel
class MyViewModel @Inject constructor(val myRepository: MyRepository): ViewModel() {


}